package collections

import kotlin.math.abs

/**
 *@author LikeYouDo
 *@date 2024/12/13 09:02
 */
fun main() {
    val shuffled = listOf(5, 4, 2, 1, 3, -10)
    println(shuffled.sorted())
    println(shuffled.sortedBy { -it })
    println(shuffled.sortedDescending())
    println(shuffled.sortedByDescending { abs(it) })
}